package com.own.business.creditbank.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Map;

/**
 * ResultVo
 *
 * @author chenxueli
 * @date 2022-08-05 11:16:00
 */
@ApiModel("学分银行数据响应对象")
@Getter
@Setter
@Accessors(chain = true)
public class ResultVo<T> {

    @ApiModelProperty("响应code")
    private Integer code;

    @ApiModelProperty("响应消息")
    private String message;

    @ApiModelProperty("响应数据")
    private T data;

    @ApiModelProperty("是否成功")
    private Boolean success;

    @ApiModelProperty("额外参数")
    private Map<String, Object> extra;

}
